<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html>
<head>
	<meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <!-- HTML5 shim for IE8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
    <![endif]-->

	<link href="/statics/simpleboot/themes/<?php echo C('SP_ADMIN_STYLE');?>/theme.min.css" rel="stylesheet">
    <link href="/statics/simpleboot/css/simplebootadmin.css" rel="stylesheet">
    <link href="/statics/js/artDialog/skins/default.css" rel="stylesheet" />
    <link href="/statics/simpleboot/font-awesome/4.2.0/css/font-awesome.min.css"  rel="stylesheet" type="text/css">
    <style>
		.length_3{width: 180px;}
	</style>
	<!--[if IE 7]>
	<link rel="stylesheet" href="/statics/simpleboot/font-awesome/4.2.0/css/font-awesome-ie7.min.css">
	<![endif]-->
<script type="text/javascript">
//全局变量
var GV = {
    DIMAUB: "/",
    JS_ROOT: "statics/js/",
    TOKEN: ""
};
</script>
<!-- Le javascript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="/statics/js/jquery.js"></script>
    <script src="/statics/js/wind.js"></script>
    <script src="/statics/simpleboot/bootstrap/js/bootstrap.min.js"></script>
<?php if(APP_DEBUG): ?><style>
		#think_page_trace_open{
			z-index:9999;
		}
	</style><?php endif; ?>
<body class="J_scroll_fixed" style="min-width:800px;">
<div class="wrap J_check_wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="<?php echo U('Financialadmin/index');?>" >订单列表</a></li>
        <li ><a href="<?php echo U('Financialadmin/show');?>">订单详情</a></li>
        <li ><a href="<?php echo U('Financialadmin/statistics');?>">统计信息</a></li>
    </ul>
    <form class="well form-search" method="post" action="<?php echo U('Financialadmin/search');?>">
        <div class="search_type cc mb10">
            <div class="mb10">
					<span class="mr20">时间：
						<input type="text" name="start_time" class="input length_2 J_date" value="<?php echo ($formget["start_time"]); ?>" style="width:80px;" autocomplete="off">-
                        <input autocomplete="off" type="text" class="input length_2 J_date" name="end_time" value="<?php echo ($formget["end_time"]); ?>" style="width:80px;">
						关键字：
						<input type="text" class="input length_2" name="keyword" style="width:200px;" value="<?php echo ($formget["keyword"]); ?>" placeholder="请输入关键字...">
                        <input type="hidden" value="0" name="type">
						<button class="btn">搜索</button>
                        <b style="float: right;margin-right: 20px;">当页订单成交额：￥<?php echo ($total_money); ?>人民币</b>
					</span>
            </div>
        </div>
    </form>
    <form class="J_ajaxForm" action="" method="post">
        <div class="table_list">
            <table width="100%" class="table table-hover">
                <thead>
                <tr>
                    <th  width="16"><label><input type="checkbox" class="J_check_all" data-direction="x" data-checklist="J_check_x"></label></th>
                    <th style="background-color: #FFFFFF" width="150">编号</th>
                    <th width="80">用户ID</th>
                    <th width="90">商品数量</th>
                    <th width="">商品信息</th>
                    <th width="90">订单状态</th>
                    <th width="150">状态时间</th>
                    <th width="90">账单预计状态</th>
                    <th width="140"><span>订单金额</span></th>
                    <th width="120">操作</th>
                </tr>
                </thead>
                <?php if(is_array($data)): foreach($data as $key=>$vo): if(!empty($vo["class_type"])): ?><tr class="gray_back"><?php else: ?><tr><?php endif; ?>
                    <td><input type="checkbox" class="J_check" data-yid="J_check_y" data-xid="J_check_x" name="ids[]" value="<?php echo ($vo["id"]); ?>"></td>
                    <td><a href="<?php echo U('Financialadmin/show',array('id'=>$vo[id]));?>"><?php echo ($vo["num"]); ?></a></td>
                    <td><?php echo ($vo["uid"]); ?></td>
                    <td><?php echo ($vo["goods_num"]); ?></td>
                    <td><?php echo ($vo["goodsInfo"]); ?></td>
                    <td><?php echo ($vo["status"]); ?></td>
                    <td><?php if(!empty($vo["status_time"])): ?><b><?php echo (date("Y-m-d H:i",$vo["status_time"])); ?></b><?php else: ?><b><?php echo (date("Y-m-d H:i",$vo["cTime"])); ?></b><?php endif; ?></td>
                    <td style="color: red"><?php echo ($vo["would_status"]); ?></td>
                    <td><?php echo ($vo["total"]); ?></td>
                    <td>
                        <a target="_self" href="<?php echo U('Financialadmin/show',array('id'=>$vo[id]));?>" target="_blank" >查看</a>|
                        <a href="<?php echo U('Financialadmin/edit',array('id'=>$vo[id]));?>" class="J_ajax_del" >修改</a>
                    </td>
                    </tr><?php endforeach; endif; ?>
            </table>
            <div class="p10">
                <div class="pages" style="text-align: center"><?php echo ($page); ?></div>
            </div>
        </div>
        <div class="form-actions">
            <label class="checkbox inline" for="check_all"><input type="checkbox" class="J_check_all" data-direction="y" data-checklist="J_check_y" id="check_all">全选</label>
            <button class="btn btn-primary J_ajax_submit_btn" type="submit" data-action="<?php echo u('Commentadmin/check',array('check'=>1));?>" data-subcheck="true">审核</button>
            <button class="btn btn-primary J_ajax_submit_btn" type="submit" data-action="<?php echo u('Commentadmin/check',array('uncheck'=>1));?>" data-subcheck="true">取消审核</button>
            <button class="btn btn-primary J_ajax_submit_btn" type="submit" data-action="<?php echo u('Commentadmin/delete');?>" data-subcheck="true" data-msg="你确定删除吗？">删除</button>
        </div>
    </form>
</div>
<script src="/statics/js/common.js"></script>
</body>
</html>